package com.yuyou.fn.report.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.report.entity.CostOfProduct;
import com.yuyou.fn.report.vo.CostOfProductQueryVo;
import com.yuyou.fn.report.vo.ProductCostVo;
import com.yuyou.fn.report.vo.TimeAmountVo;

import java.util.Date;
import java.util.List;

/**
 *
 * CostOfProduct 表数据服务层接口
 *
 */
public interface ICostOfProductService extends ISuperService<CostOfProduct,Long> {

    List<CostOfProduct> findCostByProductId(List<Long> productIds, List<Long> mainAccountIds, Date startDate,Date  endDate);

    List<CostOfProduct> findCostByProductIdsAndFeeCategoryIds(List<Long> productIds, List<Long> mainAccountIds, Date startDate,Date  endDate,List<Long> feeCategoryIds);

    Page<CostOfProduct> findProductCostPageByQueryVo(CostOfProductQueryVo costOfProductQueryVo,int pageNo,int pageSize);


    List<TimeAmountVo> findProductMonthAmount(CostOfProductQueryVo costOfProductQueryVo);

    List<ProductCostVo> findProductCost(CostOfProductQueryVo costOfProductQueryVo);
}